<div class="row">
<div class="col-xs-2"></div>
<div class="col-xs-8">
<div class="span3">
	<video id="reVideo" width="280" autoplay muted></video>
</div>
</div>
</div>
<script type="text/javascript">
	var peerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || 
		window.webkitRTCPeerConnection || window.msRTCPeerConnection;
	var sessionDescription = window.RTCSessionDescription || window.mozRTCSessionDescription ||
	 window.webkitRTCSessionDescription || window.msRTCSessionDescription;
	
	var con;
	
	
	
	attachMediaStream = function(element, stream) {
	    if (typeof element.srcObject !== 'undefined') {
	      element.srcObject = stream;
	    } else if (typeof element.src !== 'undefined') {
	      element.src = URL.createObjectURL(stream);
	    } else {
	      console.log('Error attaching stream to element.');
	    }
	  };
	 
	//  console.log(reVideo);
	  
	  websocket.send(JSON.stringify({
	       'cal': target
	     }));
	  
	  
	  
 </script>
